A means of clearing the scroll buffer in an OSX Terminal.
I was looking for a method of clearing the buffer of the vertical scroll back slider and came across this little Terminal escape snippet I had never seen before:
SO...
Performs a terminal reset, buffer clearance, clear the window, set back to default colours etc... and places prompt at the top.
Neat eh!
Even the builtin Terminal reset command doesn't do that.
(This also works under 'xterm' too.)
These 4 Users Gave Thanks to wisecracker For This Post:
For a long time, when I type man anything on my Mac, both the manpage header fonts and the background was black, so I had to use my mouse to highlight the manpage output to read it. It was really annoying.
The problem was the same both locally or using the terminal and going ssh somewhere.
... (1 Reply)
Please forgive me if this is the wrong place to post.
I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc.
I tried logging in through a browser but get this error:
ERROR: Connection dropped... (1 Reply)
Please forgive me if this is the wrong place to post.
I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc.
I tried logging in through a browser but get this error:
ERROR: Connection... (1 Reply)
Hi,
I'm trying to come up with a simple expect script that allows me to login to a system and run a single command ... something like this:
#!/usr/bin/expect -f
# let's set some variables
#set password
set ipaddr
set ponumber
set hostname
set timeout -1
# let's now connect to the... (0 Replies)
I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in.
Is it also possible to start the... (4 Replies)
I'm hoping someone here can help me. I'm computer literate but by no means an expert! I'm simply trying to recover data from my DLink DNS343 NAS mounted on my X86 iMac using SMB. Somehow, in moving to a new computer, I have lost access to some files on the NAS. Just some files are access denied.
... (0 Replies)
Hi ,
I have a Mac OS X Lion mac book pro. I have a hard drive which I have partitioned in two
(a) OSX Partition - Mac OS Extended Journaled format. Mount point: /
(b) Data Partition - Windows NT Filesystem format. Mount point: /Volumes/Data
I need to access the NTFS partition (I have a... (6 Replies)
I am using Terminal on an OSX system to access and edit crontab files on a 'headless' Solaris 11 server. Crontab -e on OSX invokes vi as the editor, which is fine, but I am getting unexpected characters on keystrokes and have to abort the edit. If this is an emulation issue, would someone please... (1 Reply)
hi all,
first off thesis my first post so if i am not in the right forum, i apologize.
i'm an absolute newbie to unix. i've been reading my books and studying my crib sheets etc. but... :/
i want to accomplish two things.
1. search and remove duplicate files i.e.. audio, doc alias etc.... (1 Reply)
Hi guys and gals...
After much searching on the good ol' internet I could find nothing, so this is the result.
ALthough many people seem to have asked this question no-one seems to have a solution so here we go.
I need for AudioScope.sh, 'xterm' to run a second program for some of its... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
brlapi__getdisplaysize
Getting Terminal information(3) BrlAPI Getting Terminal information(3)NAME
Getting Terminal information -
How to get information about the connected Terminal.
Macros
#define BRLAPI_MAXNAMELENGTH 31
Functions
int BRLAPI_STDCALL brlapi_getDriverName (char *buffer, size_t size)
int BRLAPI_STDCALL brlapi__getDriverName (brlapi_handle_t *handle, char *buffer, size_t size)
int BRLAPI_STDCALL brlapi_getDisplaySize (unsigned int *x, unsigned int *y)
int BRLAPI_STDCALL brlapi__getDisplaySize (brlapi_handle_t *handle, unsigned int *x, unsigned int *y)
Detailed Description
Before using Raw mode or key codes, the application should always check the type of the connected terminal, to be sure it is really the one
it expects.
One should also check for display size, so as to adjust further displaying on it.
Macro Definition Documentation
#define BRLAPI_MAXNAMELENGTH 31
Maximum name length for names embeded in BrlAPI packets, not counting any termination character
Function Documentation
int BRLAPI_STDCALL brlapi__getDisplaySize (brlapi_handle_t *handle, unsigned int *x, unsigned int *y)
int BRLAPI_STDCALL brlapi__getDriverName (brlapi_handle_t *handle, char *buffer, size_tsize)
int BRLAPI_STDCALL brlapi_getDisplaySize (unsigned int *x, unsigned int *y)
Return the size of the braille display
int BRLAPI_STDCALL brlapi_getDriverName (char *buffer, size_tsize)
Return the complete name of the driver used by brltty
This function fills its argument with the whole name of the braille terminal if available, terminated with a '