Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Horizontal Split

by Sikula (Initiate)
on Sep 18, 2012 at 22:46 UTC ( [id://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 (Canon) 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

        :split
        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 (Saint) 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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://994380]
Approved by NetWallah
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found