mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
Initial handling of multi byte characters
Use mblen() to calculate the byte count for each character.
This commit is contained in:
parent
e062ff7b97
commit
9f9949aeec
2 changed files with 24 additions and 12 deletions
2
slave.c
2
slave.c
|
|
@ -61,7 +61,7 @@ slave_spawn(int ptmx)
|
|||
write(STDOUT_FILENO, "yeehaa", 6);
|
||||
|
||||
sleep(1);
|
||||
write(STDOUT_FILENO, "\rXXX", 4);
|
||||
write(STDOUT_FILENO, "\råäö", strlen("\råäö"));
|
||||
|
||||
sleep(1000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue