Unix Programming - how to use ncurses to delete a char on screen ?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > May 2006 > how to use ncurses to delete a char on screen ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to use ncurses to delete a char on screen ?
key9

2006-05-23, 7:16 am

Hi all

I am writing a displayer class to adapter with ncurses's WINDOW* ,
when I use vs << KEY_BACKSPACE, I want delete a char.(just current line
maybe)

Do I have to write some bufferFrame to achieve that?

thank you very much.

key9


Sjoerd

2006-05-23, 7:16 am


key9 wrote:
> I am writing a displayer class to adapter with ncurses's WINDOW* ,
> when I use vs << KEY_BACKSPACE, I want delete a char.(just current line
> maybe)
>
> Do I have to write some bufferFrame to achieve that?


You can delete a char by writing a space.

Thomas Dickey

2006-05-23, 7:16 am

Sjoerd <sjoerder@gmail.com> wrote:

> key9 wrote:
[vbcol=seagreen]
> You can delete a char by writing a space.


or delch()

It depends on what OP means by "delete a char".


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com