Skip to content

Commit

Permalink
tty: Support Chinese character output in tty
Browse files Browse the repository at this point in the history
  • Loading branch information
MingcongBai committed May 29, 2024
1 parent 70ad6fc commit 8c5af07
Show file tree
Hide file tree
Showing 17 changed files with 197,343 additions and 42 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/vt/selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ static int vc_selection_store_chars(struct vc_data *vc, bool unicode)
}
obp = bp;
}
if (c > 0x80)
i += 2;
}
vc_sel.buf_len = bp - vc_sel.buffer;

Expand Down
Loading

0 comments on commit 8c5af07

Please sign in to comment.