This is more of a theoretical question really, but recently I've been pondering rewriting screen in perl, just because. So naturally I've been looking at Curses.pm and IO::Pty and such, but I was wondering if anyone had any better ideas or areas I should look at it?
I'm mostly interested in "multiple terminal" aspect of screen, as in, launching a full screen app then switching to another one at the press of a key. Obviously one can use system and fork and so on, but then you have problems with reading keys past whatever app you launch in system, launching other system apps at the same time, and so on. So, any one have any ideas or notions I could explore? Be as vague as you like.