Mac OS X terminal emulator coding?

I would like to create a terminal emulator for Mac OS X. The problem is that I do not know where to start. Can I use the whole NSTasks group? Or do I need to read tons of source code for programs like xterm, urxvt, etc.? I do not want much customizability (= without the configuration file syntax) nor complex functions, and I will use bash as a shell.

Thanks for answers!

-Mike

+4
source share
2 answers

I would look at Visor: http://code.google.com/p/blacktree-visor/ This is a Quake-style terminal that slides up and down from the edge of the screen.

iTerm ( http://iterm.sourceforge.net/ ) would also be a good project to view (perhaps even better than Visor).

+5
source

As Dave said, iTerm is probably the best place to start.

As for others, xterm / urxvt may not be the easiest to read for this, as they will display between VT100 and Xlib, which is kind of low-level. An implementation that might be easier to read is a VTE terminal that uses GNOME, as it will display between VT100 and GLib / GTK +, which is probably much closer to what Mac OS X provides.

Good luck

+1
source

Source: https://habr.com/ru/post/1299456/


All Articles