PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:

Good Evening Esteemed Monks,
I am in need of some simple code to create a split screen in my terminal. I would like to view text from one file on the top screen and items from another file on the bottom screen with the ability to scroll say ten lines at a time within either screen. I am using Activestate Perl Windows XP. Thanks in advance!

Replies are listed 'Best First'.
Re: Split Terminal
by Old_Gray_Bear (Bishop) on Dec 30, 2014 at 03:29 UTC
    Vim provides tools to do this, for a non-Perl solution. Open multiple Vim windows, one per source (or data) file, one for the Perl Debugger, and Bob's Your Uncle.

    ----
    I Go Back to Sleep, Now.

    OGB

Re: Split Terminal
by Anonymous Monk on Dec 30, 2014 at 01:14 UTC

      This does differ from the previous question:
      One portion of the screen pulls client account info internally while the second screen below the top screen would be used to connect to the banks financial mainframe that we use to approve loans and to determine the clients credit and payment options. I would prefer not to have two open windows...one screen static info while the second is dynamic info. Thanks in advance.

        PilotInControl:

        Then you might find tmux a fit for your question.

        ...roboticus

        When your only tool is a hammer, all problems look like your thumb.

Re: Split Terminal
by CountZero (Bishop) on Dec 30, 2014 at 06:42 UTC
    Just open two command windows and print 10 lines of one file in the first and 10 lines of the other file in the other window.

    Voilą, a poor man's split screen file viewer!

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: Split Terminal
by Laurent_R (Canon) on Dec 30, 2014 at 15:29 UTC
    Are you using a GUI with Perl (TK or some other)? If yes, please give additional information. If not, please tell how is this is related to Perl.