From 65e84b15a944c83862da736a427636f3e64d3fc2 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Thu, 4 Nov 2021 15:00:36 -0700 Subject: Feat: input readline now unicode aware Updated our assumptions of readline to handle valid unicode input. This required integrating with an explicit library to handle unicode knowledge. --- sys/cmd/term/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cmd/term/term.c') diff --git a/sys/cmd/term/term.c b/sys/cmd/term/term.c index f92db28..8805b0b 100644 --- a/sys/cmd/term/term.c +++ b/sys/cmd/term/term.c @@ -2096,7 +2096,7 @@ tputc(rune u) } /* combining characters */ - if(!width) { + if(!width){ if(term.c.x > 0) gp = &term.line[term.c.y][term.c.x-1]; else if(term.c.y > 0) -- cgit v1.2.1