Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Horizontal Split

by Sikula (Initiate)
on Sep 18, 2012 at 22:46 UTC ( #994380=perlquestion: print w/replies, xml ) Need Help??
Sikula has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am writing a program and I need to be able to split the terminal screen horizontally. The top section beinf for the output of the program, the bottom section for viewing a file. Can anyone suggest some modules on how to do this. Help would be aprreciated. Thank you!

Replies are listed 'Best First'.
Re: Horizontal Split
by atcroft (Abbot) on Sep 19, 2012 at 01:36 UTC
Re: Horizontal Split
by zwon (Abbot) on Sep 19, 2012 at 03:25 UTC
    It has nothing to do with Perl, but screen allows you to split a terminal window. Default key binding for this is C-a S, but you still have to read the manual if you haven't use screen before.
Re: Horizontal Split
by stevieb (Abbot) on Sep 18, 2012 at 23:07 UTC

    That is the job of an editor.

    Use either Vim, or, to ensure this isn't an editor war, Emacs.

      How exactly would that work. Sorry I am new to this.

        How exactly would that work. Sorry I am new to this.

        In vim (vi improved) command mode, type

        Change the active section with <Ctrl>w<Ctrl><w> in command mode.

        How exactly would that work

        i.e. If you're using emacs pulse both the keys control+X, release, and then pulse "2"

Re: Horizontal Split
by GrandFather (Sage) on Sep 19, 2012 at 03:59 UTC

    Use Komodo IDE, Padre or one of the other IDEs available that support Perl.

    True laziness is hard work
Re: Horizontal Split
by Rudolf (Pilgrim) on Sep 19, 2012 at 01:14 UTC

    If you really wanted two windows, you would have to make another one. And if you want data shared between them you can use a pipe or a socket.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994380]
Approved by NetWallah
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-05-27 05:56 GMT
Find Nodes?
    Voting Booth?