Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #33827

Re: Block editor with Unicode

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: Block editor with Unicode
Date 2014-10-11 00:10 +0200
Organization 1&1 Internet AG
Message-ID <m19lfp$hud$1@online.de> (permalink)
References <m18nf9$3fh$1@newsserver.rrzn.uni-hannover.de> <1p-dnXlQo9GalKXJnZ2dnUU7-cudnZ2d@supernews.com>

Show all headers | View raw


Andrew Haley wrote:
> The only thing which makes sense IMO is to do the line breaks after 64
> bytes.  The editor itself only sees bytes, and simply emits them to
> the terminal, which decodes them to UTF-8.  This will require some
> clever processing when repositioning the cursor, but that's all.

The easiest thing to position the cursor is to print everything up to the 
cursor, emit the "save cursor" escape sequence (vt100 <esc>[s or <esc>7), 
print the rest, and then emit the "restore cursor" escape sequence (vt100 
<esc>[u or <esc>8).  This doesn't work when the screen scrolls during the 
rest of the printing, but the idea behind a block editor is that it won't do 
that ;-).

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Block editor with Unicode Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2014-10-10 15:33 +0200
  Re: Block editor with Unicode Christian Kellermann <ckeen@pestilenz.org> - 2014-10-10 16:06 +0200
  Re: Block editor with Unicode peter.m.falth@gmail.com - 2014-10-10 07:27 -0700
  Re: Block editor with Unicode albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-10 15:27 +0000
  Re: Block editor with Unicode anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-10-10 15:59 +0000
    Re: Block editor with Unicode jg <josefg@gmail.com> - 2014-10-10 10:37 -0700
    Re: Block editor with Unicode hughaguilar96@yahoo.com - 2014-10-10 16:27 -0700
      Re: Block editor with Unicode hughaguilar96@yahoo.com - 2014-10-10 16:30 -0700
        UTF-8 'toupper' and 'tolower' (Re: Block editor with Unicode) Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2014-11-10 16:46 +0000
  Re: Block editor with Unicode Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-10-10 11:27 -0500
    Re: Block editor with Unicode Bernd Paysan <bernd.paysan@gmx.de> - 2014-10-11 00:10 +0200
      Re: Block editor with Unicode Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-10-11 04:52 -0500
  Re: Block editor with Unicode Bernd Paysan <bernd.paysan@gmx.de> - 2014-10-11 00:04 +0200
  Re: Block editor with Unicode Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2014-10-15 11:31 +0200
  Re: Block editor with Unicode Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2014-10-21 14:09 +0200
    Re: Block editor with Unicode Stefan Mauerhofer <smauerhofer@androsoft.ch> - 2014-11-11 04:10 -0800
      Re: Block editor with Unicode Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2014-11-12 07:45 +0100

csiph-web