lkml.org 
[lkml]   [1999]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] tty improvement for Unicode/UTF-8 mode
In message <199908092116.XAA05855@jaures.ilog.fr> Bruno Haible writes:


>Same patch again, in unidiff format now.

>For inclusion in the development kernel:

>The patch below fixes the "cooked" mode editing behaviour of ttys in
>Unicode/UTF-8 mode. The line editor in n_tty.c up to now assumes that
>every byte >= 0x20 is a character and occupies one screen position. For
>ttys in UTF-8 mode, this is not true any more. The patch fixes the two
>following problems in line editing on UTF-8 ttys:

> 1. When the user types BackSpace, a multi-byte character has to be
> erased, not only a single byte. Also, in ECHOPRT mode, the entire
> multi-byte character has to be echoed to the screen, not only one
> byte.

> 2. When the user types a Tab or backspaces over a Tab, the kernel
> needs to have the proper notion of the column number of the cursor
> (tty->column). For a multi-byte character, the column number increases
> by 1, not by the number of bytes that make up the character.

>The program which sets up the tty (xterm, rlogind, telnetd etc.) has to tell
>the kernel that the tty will be in UTF-8 mode. For this purpose, a new
>tty attribute is introduced, part of the "struct termio" structure.

>The patch has been tested with console and xterm in UTF-8 mode, directly
>and across rlogin and telnet.

As for me its no bad idea to join this patch with mine I've sent
to this list not long time ago which allow selection in UTF mode and
using unicode keymaps in XLATE mode. With both this patches we'll have
a realy useable unicode console driver at last.

Sincerely, Stanislav Voronyi.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.301 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site