For Programmers: Free Programming 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, 4:08 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, 4:08 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, 4:08 am

Sjoerd <sjoerder@gmail.com> wrote:

> key9 wrote:
[color=darkred]
> 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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com