terminal

How to remove two lines from terminal output

Given that two lines have been printed out in the terminal, is it possible to delete both of them so they may be replaced with two new lines? I know you can use \r to replace 1 line (well, to move the cursor to the start of the line), but is there any way of doing this for the line above? As an example, I'm running a program for comput...

convert .mov to .m4v with mac terminal

what do i need to type into the mac terminal to be able t convert my .mov files to .m4a its for my iphone project. thank you ...

Applescript to control terminal sessions

I would like to control mac osx terminal via applescript as follows: when I press Command-N, I get a new terminal session for localhost (as usual) when I press Command-Shift-N, I open a new terminal session with a different background color, with an ssh session to a machine (with config specified in ~/.ssh/config) How do I accomplish...

What is the Python equivalent of Perl's backticks?

Possible Duplicate: Equivalent of Backticks in Python When I want to write directly to the command prompt in Perl, I can do something like this: Perl File test.pl: $directory = `dir`; print $directory; Which would output something like.. C:\Documents and Settings\joslim\Desktop>perl test.pl Volume in d...

Debugging ncurses with Eclipse CDT

I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse to help me fix the...

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the Desktop and then use Cmd-N to create a new Finder window. What I am looking for is a method for performing the same function for Terminal windo...

Snow Leopard Terminal begins to execute Ruby installation upon launch

Hello, at some point after I installed Ruby on rails, my terminal on Snow Leopard began executing the configuration (?) procedure for Ruby. Last login: Thu Oct 14 21:39:51 on ttys002 /Users/Adam/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)... ruby-1.9.2-p0 - #fetching ruby-1.9.2-p0 - #extracted to /Users/A...

Cannot use F10 key in Midnight commander running in OSX leopard's terminal

I connect to my server from terminal in MAC OSX leopard. When I run midnight commander there I cannot use function keys like F10 to close MC even I cannot use mouse to control MC. Any idea why function keys don't work ? ...

mac terminal root indicator

How do I make command prompt to end with # if I do sudo -s in mac terminal? Right now I have $. Thanks so much. ...

launching terminal from application

I have created an application using Netbeans 6.9. In the application I want that when the user clicks on the run button then the terminal(Command Prompt) should open and some text should appear on the terminal. The text is actually a command. I want that the command should be executed on the terminal. Can anyone please help me. I've wri...

graph in c , recomend book

Is any method or software to plot or display graph on unix dump terminal even the dump terminal is one color only(green)? For my knowledge, we can use text based character to draw graph but not graphic mode. platform is unix ansi c compiler CAN anyone recomend web page or a book ? ...

Pasting text into emacs on Macintosh

I'm on a Macintosh and am using "terminal" for my shell. When I copy text from any window (via mouse drag then right mouse button menu -> copy) and then I paste the text (right mouse button -> paste) into a terminal with emacs running, it doesn't act as a paste. Instead, it is just like entering or typing in text. The problem occurs w...

large output in common lisp linux terminal

I wrote a clisp program that prints out n sets of x*y random integers. I'd like to make n=100, but I can't copy and paste the whole thing because my linux terminal doesn't go back far enough, for lack of a better word. I'd like the simplest way possible to capture 2200 lines of linux terminal readout. ...

Using XDebug from terminal (got only SSH access)

When I develop with the server on my workstation I can use XDebug from my IDE and debug variables, etc. Many times the server is on a remote machine where I have only SSH, so I only edit with vi. In that case is there a way to use XDebug? Is there a client I could use from terminal? ...

"The Social Network" movie - how to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm familiar with how to do this in a RUBY/RoR environment - but with a standard LAMP Apache/PHP environment, how to do actively monitor your server...

cleaning all characters from terminal

void clearscreen ( void ) { char a = 'a' ; fflush ( stdout ); do{ a = getc( stdin ) ; if ( isspace ( (int ) a ) ) { getc ( stdin ); } }while ( a != EOF ); } I want write functi...

How to disable flashing terminal in Mac OS

when i enter terminals commands etc and hit TAB (file name completion) the whole terminal window flashes rapidly (if there is no unique filename for example). This is not good since for some people this can trigger a seizure, and for me it causes really bad headaches. Is there a way we can disable this flashing? ...

How to move GCC in osx from xcode to /usr/bin

I have the gcc compiler in "/Developer/usr/bin/gcc" but when i type in gcc into terminal it says can not be found, i assume this is because its not in the "/usr/bin" dir. So can i a) move gcc from the first dir to the second, or set some kind of shortcut pointing gcc to "/Developer/usr/bin/gcc" ...

Terminal displys wrong php version (Snow Leopard)

Need to downgrade php to 5.2.x, so I followed this tutorial: http://andreys.info/blog/2010-03-25/compile-php-5-2-on-osx-10-6-snow-leopard#comment-631 I'm on snow leopard 10.6.4, with xcode installed. So I compiled php5.2.x and completed the tutorial. phpinfo() loaded within the browser at htp://localhost says 5.2.x, Great!! But, Termin...

A terminal-like WPF textbox ?

Hello, I am looking for an embeddable interactive console. I want the user to be able to type in some custom commands, and the application to write command responses in it. Would be awesome if it would understand powershell or python, ans supports command completion. I already built my own bash-like terminal, but I do not want to tot...