how to use ncurses to delete a char on screen ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > how to use ncurses to delete a char on screen ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-06 12:16 PM

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







[ Post a follow-up to this message ]



    Re: how to use ncurses to delete a char on screen ?  
Sjoerd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-06 12:16 PM


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.






[ Post a follow-up to this message ]



    Re: how to use ncurses to delete a char on screen ?  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-06 12:16 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register