in reply to Pure Perl Split Screen
You should take a look at the Term::Cap module. It's in the set of core modules since at least version 5.10, so it should be available in your installation. I'm assuming that by pure Perl you mean "I don't want to install any modules".
What a module like this gives you is the ability to write to a specific part of the screen. You would now have to define you own subroutines for printing to the upper part, and printing to the lower part, but it's better than the alternative. The alternative is something like writing to the @upper_lines and @lower_lines arrays, and then, with a refresh_screen sub, cleaning the whole screen and writing the contents of both arrays. to the screen, with a horizontal line in between, if you wish.
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pure Perl Split Screen
by GotToBTru (Prior) on Nov 10, 2014 at 17:32 UTC | |
by PilotinControl (Pilgrim) on Nov 10, 2014 at 19:15 UTC | |
by blindluke (Hermit) on Nov 10, 2014 at 21:54 UTC | |
by PilotinControl (Pilgrim) on Nov 10, 2014 at 23:44 UTC | |
by GotToBTru (Prior) on Nov 10, 2014 at 19:25 UTC | |
by PilotinControl (Pilgrim) on Nov 10, 2014 at 19:49 UTC | |
|
Re^2: Pure Perl Split Screen
by PilotinControl (Pilgrim) on Nov 10, 2014 at 17:17 UTC | |
by soonix (Chancellor) on Nov 11, 2014 at 07:28 UTC | |
|
Re^2: Pure Perl Split Screen
by PilotinControl (Pilgrim) on Nov 15, 2014 at 14:16 UTC | |
by blindluke (Hermit) on Nov 17, 2014 at 14:59 UTC | |
by PilotinControl (Pilgrim) on Nov 17, 2014 at 19:06 UTC |