473,803 Members | 4,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

clearing or capturing the screen

I wish to write a console text editor. Can anyone tell me how to
capture the screen like Vi or Pico does?

Also, I wish to draw "tabs" on the screen, is there a standard way to
draw so that my code is crossplatform and will compile on most
platforms?

Thanks,

-Jason

Feb 4 '06 #1
2 1987
Hi,

I take it that you are developing for *nix systems then I believe you have
to take a look into ncurses. I believe that is a library that let you
position the cursor clear terminal screen etc.

I don not believe vi captures the screen rather (like on windows) it knows
what is on the screen internally and redraws parts (give commands to the
terminal) if those change.

--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Slack" <ja***@slack.ie > wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
I wish to write a console text editor. Can anyone tell me how to
capture the screen like Vi or Pico does?

Also, I wish to draw "tabs" on the screen, is there a standard way to
draw so that my code is crossplatform and will compile on most
platforms?

Thanks,

-Jason

Feb 4 '06 #2
"Slack" <ja***@slack.ie > wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
:I wish to write a console text editor. Can anyone tell me how to
: capture the screen like Vi or Pico does?
:
: Also, I wish to draw "tabs" on the screen, is there a standard way to
: draw so that my code is crossplatform and will compile on most
: platforms?

The standard C++ language itself has no support for 'manipulating'
the console window and its inputs/outputs. A platform-specific
solution is therefore required.

However, you can use a library that is available on most platforms.
I think 'ncurses' is included on most unices, and is available
on Windows as well. Try googling for that.
[ Disclaimer: I never used it ]

hth -Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
Feb 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9691
by: Miki Tebeka | last post by:
Hello All, I'd like to bind <CTRL+L> so that it will clear IDLE's screen (in the interactive prompt). Any pointers/suggetions? Thanks. Miki
0
1911
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind up with 101 Another field
1
2017
by: raghavendra | last post by:
Hi, i am facing problem clearing screen in console application. As, in C++ we have clrscr(); Is? their any similar type of function is avaliable.. Raghavendra...
0
1327
by: joseph.inglis | last post by:
Heres an interesting one and i guess its idea that are needed as opposed to a direct solution (although one would be welcomed of course). I want to render a webpage as an image. At the moment this is done using awebbrowser object and use of BitBlt to capture the screen... Ive done it a few ways, in both vb and c# and it works well (hurrah). But this is only useful if the form hosting the webbrowser object is visible. How can one do...
2
2734
by: Carsten Klotz | last post by:
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My actual application automatically navigates to some websites, makes a screenshot and transforms them into small thumbnails. At the moment I'm using the imported function BitBlt from gdi32.dll. This solutions only works, if the
1
1343
by: asdf | last post by:
I just started my first project where i draw lines and strings on the screen. I sucessfully drew what i needed on the screen, then realized that when it updated it just drew over the same area w/o clearing the first instance of text and lines. How can i clear it? Below is my code, basically it is a thermometer and my program is drawing a red line the height of the temp and drawing the temp on the red bubble. Dim g As Graphics
2
10887
by: Rune Strand | last post by:
Is it possible by use of pyWin32 or ctypes to make a screen capture of an inactive, or a hidden window if the hwnd/WindowName/ClassName is known? I've seen dedicated screen capture software do this. While PIL.ImageGrab.grab() is excellent, it will only capture the foreground of the desktop. I've tried for hours, but I soon get helplessly lost in the labyrinths of the Win32API.
65
8646
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.