Writing a Linux Terminal Emulator


Non-chip:

I want to write a x11 terminal emulator, but I don't know how to generate and communicate with the shell, is there any basic (pseudo or C) code? Things like what kind of PTY to create, how to bind the shell to the shell, what signals do I have to catch or send, etc, don't really feel like sorting the whole xterm source.

EDIT: Oh, I want to implement a way to communicate with any app in it, how can I do feature discovery? Hidden ansi sequence in some "client", hopefully it won't conflict with other terminal emulators? Some environment variable, hopefully it doesn't conflict with the "client" or be removed by the shell?

Non-chip:

Ok, if anyone needs it too, and is using lua, I found the http://www.tset.de/lpty library to work fine. Still testing ansi escaping and content, but should work.

Related


Writing a Linux Terminal Emulator

Non-chip: I want to write a x11 terminal emulator, but I don't know how to generate and communicate with the shell, is there any basic (pseudo or C) code? Things like what kind of PTY to create, how to bind the shell to the shell, what signals do I have to cat

Writing a Linux Terminal Emulator

Non-chip: I want to write a x11 terminal emulator, but I don't know how to generate and communicate with the shell, is there any basic (pseudo or C) code? Things like what kind of PTY to create, how to bind the shell to the shell, what signals do I have to cat

Linux terminal emulator with terminal autocomplete?

Yaniv Aknin I've migrated back to Linux from OSX and am happy most of the time. One of the main things I miss is iTerm2 , especially its terminal-based autocomplete (tmux integration is nice too). I looked around but couldn't find the equivalent table in Linux

Linux terminal emulator with terminal autocomplete?

Yaniv Aknin I've migrated back to Linux from OSX and am happy most of the time. One of the main things I miss is iTerm2 , especially its terminal-based autocomplete (tmux integration is nice too). I looked around but couldn't find the equivalent table in Linux

Linux: How to set default directory for terminal emulator?

Jons After upgrading to Ubuntu 11.04, my terminals (gnome-terminal and urxvt) start "/"instead of"~" What would cause this behavior? I imagine the working directory for Gnome or X is set to "/"or something like that, but I don't know where to start debugging i

Terminal Emulator vs Terminal

coding I'm having a hard time understanding the difference between running a terminal emulator from the GUI (gnome) and booting directly into the terminal. I've been a sys/network admin for over 10 years and I'm pretty familiar with terminal emulation and how

Terminal Emulator vs Terminal

coding I'm having a hard time understanding the difference between running a terminal emulator from the GUI (gnome) and booting directly into the terminal. I've been a sys/network admin for over 10 years and I'm pretty familiar with terminal emulation and how

Terminal Emulator vs Terminal

coding I'm having a hard time understanding the difference between running a terminal emulator from the GUI (gnome) and booting directly into the terminal. I've been a sys/network admin for over 10 years and I'm pretty familiar with terminal emulation and how

PyQT terminal emulator

hide: I am trying to develop a "console" in pyqt. Similar to where all consoles are in xterm.js, it's the front end, it doesn't spawn any child processes, it's just an I/O that lets me plug in whatever I want later. Can I use any existing python packages or si

PyQT terminal emulator

hide: I am trying to develop a "console" in pyqt. Similar to where all consoles are in xterm.js, it's the front end, it doesn't spawn any child processes, it's just an I/O that lets me plug in whatever I want later. Can I use any existing python packages or si

Java Terminal Emulator

Rima: Does anyone know of a library or class to emulate a vt100 terminal (graphical or not is irrelevant). What I basically want is a class that implements the logic of the vt100 terminal (e.g. the delete function will be called when a "delete" code is receive

Highlight output in terminal emulator

Benjamin Lindqvist Can't imagine I'm the first to wonder, but I'm really getting nowhere with this - maybe I'm just using the wrong search term. I'm looking for a terminal emulator that will allow me to use the keyboard to navigate through the output, just lik

Terminal emulator (eg Cathode)?

Pedro Rolo This is cool : http://osxdaily.com/2011/01/27/the-ultimate-retro-terminal-cathode/ Are there any similar applications for Ubuntu? Pedro Rolo I just stumbled across that terminologythis is the Terminal that comes with the Enlightenment Window Manager

Ubuntu X terminal emulator

stupid professor Whenever I press Ctrl+Alt+T, the X terminal emulator opens instead of Gnome Terminal. I do not know why. What is this x terminal emulator and what does it do? How is it different from Gnome Terminal? vanadium Totally possible workaround A very

CygWin terminal emulator?

Crocodile I have got: Windows 7 Segwyn The development board is connected to the COM1 port. I need: Connect to its serial port from CygWin. If I was using Linux, I would be running something like picocom or minicom . Also in Windows 7 I can install hypertermin

Is the terminal emulator process a server?

Tim Is the temporary emulator working on the server? If yes, what are its clients? How do I find its customers? thanks. netstatThe output contains the lxterminal process. Does this mean that the terminal emulator process is a UNIX domain socket based server? $

Change terminal emulator

Amelio Vazquez-Reina I can access the remote computer via ssh. On this machine, if I run, echo $TERMI get xterm. If I want to change the terminal emulator to another emulator (assuming it's installed on the remote computer), what should I do? Tim Kennedy The s

Is the terminal emulator process a server?

Tim Is the temporary emulator working on the server? If yes, what are its clients? How do I find its customers? thanks. netstatThe output contains the lxterminal process. Does this mean that the terminal emulator process is a UNIX domain socket based server? $

PyQT terminal emulator

hide: I am trying to develop a "console" in pyqt. Similar to where all consoles are in xterm.js, it's the front end, it doesn't spawn any child processes, it's just an I/O that lets me plug in whatever I want later. Can I use any existing python packages or si

Java Terminal Emulator

Rima: Does anyone know of a library or class to emulate a vt100 terminal (graphical or not is irrelevant). What I basically want is a class that implements the logic of the vt100 terminal (e.g. the delete function will be called when a "delete" code is receive

Highlight output in terminal emulator

Benjamin Lindqvist Can't imagine I'm the first to wonder, but I'm really getting nowhere with this - maybe I'm just using the wrong search term. I'm looking for a terminal emulator that will allow me to use the keyboard to navigate through the output, just lik

Terminal emulator (eg Cathode)?

Pedro Rolo This is cool : http://osxdaily.com/2011/01/27/the-ultimate-retro-terminal-cathode/ Are there any similar applications for Ubuntu? Pedro Rolo I just stumbled across that terminologythis is the Terminal that comes with the Enlightenment Window Manager

Change terminal emulator

Amelio Vazquez-Reina I can access the remote computer via ssh. On this machine, if I run, echo $TERMI get xterm. If I want to change the terminal emulator to another emulator (assuming it's installed on the remote computer), what should I do? Tim Kennedy The s

CygWin terminal emulator?

Crocodile I have got: Windows 7 Segwyn The development board is connected to the COM1 port. I need: Connect to its serial port from CygWin. If I was using Linux, I would be running something like picocom or minicom . Also in Windows 7 I can install hypertermin

Is the terminal emulator process a server?

Tim Is the temporary emulator working on the server? If yes, what are its clients? How do I find its customers? thanks. netstatThe output contains the lxterminal process. Does this mean that the terminal emulator process is a UNIX domain socket based server? $

Terminal emulator (eg Cathode)?

Pedro Rolo This is cool : http://osxdaily.com/2011/01/27/the-ultimate-retro-terminal-cathode/ Are there any similar applications for Ubuntu? Pedro Rolo I just stumbled across that terminologythis is the Terminal that comes with the Enlightenment Window Manager

Highlight output in terminal emulator

Benjamin Lindqvist Can't imagine I'm the first to wonder, but I'm really getting nowhere with this - maybe I'm just using the wrong search term. I'm looking for a terminal emulator that will allow me to use the keyboard to navigate through the output, just lik