LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2011, 04:27 AM   #1
bfyviolin
LQ Newbie
 
Registered: Feb 2010
Posts: 15

Rep: Reputation: 0
How to modify what already printed on the screen ?


Now we are implementing our own shell using C++.
What upseting us is the history command function, we use an array to store the history commands, and print the when receiving the up and down arrow buttons.
The problem is we cannot modify the history command already printed on the terminal, we even cannot move the cursur, let alone modifying the command.

Can anyone provide a solution?
Thanks.
 
Old 05-06-2011, 04:36 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by bfyviolin View Post
Now we are implementing our own shell using C++.
What upseting us is the history command function, we use an array to store the history commands, and print the when receiving the up and down arrow buttons.
The problem is we cannot modify the history command already printed on the terminal, we even cannot move the cursur, let alone modifying the command.

Can anyone provide a solution?
Thanks.
Look up

ncurses
.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to modify login screen with some text wtilton Linux - Software 11 07-14-2006 04:09 PM
Screen's icon is big how to modify them zillah Solaris / OpenSolaris 5 11-10-2005 03:20 PM
XDM, KDE.... Looking to Modify the Login Screen Devils_Guardian Debian 6 02-12-2005 01:37 AM
howto modify the image on the screen after logging in?? rohan208 Linux - General 3 07-13-2004 11:48 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration