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 22, 2024
1 parent 11980cc commit fba9689
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 fba9689

Please sign in to comment.