Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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!

Comment on Horizontal Split
Re: Horizontal Split
by stevieb (Hermit) 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

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

        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.
Re: Horizontal Split
by Rudolf (Monk) 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.

Re: Horizontal Split
by atcroft (Monsignor) on Sep 19, 2012 at 01:36 UTC
Re: Horizontal Split
by zwon (Monsignor) 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 GrandFather (Cardinal) 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

Log In?
Username:
Password:

What's my password?
Create A New User
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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-08-28 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls