Hi James,
That's strange. I wouldn't think that there would be a difference in
the escape sequences between platforms. Between terminal emulators
perhaps but not between platforms. But what do I know?

You know you can use:

WIDTH=`tput cols`
HEIGHT=`tput lines`

to get the terminal window width and height.

Anyway, thanks for todays "social bash". 'Twas fun.

best r.
Pall


On Tue, May 26, 2009 at 8:16 PM, james morris <[email protected]> wrote:
>
> Here's a patch attached which adds minor additional functionality to the
> re_store_present* scripts posted here today.
>
> for the following scripts:
>
> re_store_present2
> re_store_present3
> re_store_present4
> re_store_present5b
>
> the patch adds the command line argument -width n  where n is a custom
> width you wish to trim to. adds glitchymess if n > terminal width.
>
> ie ./re_store_present3 -width 85
>
> for the following scripts:
>
> re_store_present4
> re_store_present5b
>
> the patch also adds a second command line argument -glitch where if
> specified, the escape sequence to erase characters left from the last
> v-scroll is replaced with "xxxx". the escape sequence itself has also
> been modified to work on the amd64 platform where it appeared to not
> work - don't know if this breaks things for x86 though.
>
> ------
>
> to apply the patch, make sure all previous scripts are located in the
> same directory. cd into that directory. save the patch in that directory
> and do:
>
> patch -p1 < re_store_presents.patch
>
> to apply it. if you don't have all scripts you'll be prompted to enter
> location of those missing - press enter and then answer y + [enter] to
> skip.
>
>
> cheers,
> james
>
> _______________________________________________
> NetBehaviour mailing list
> [email protected]
> http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>



-- 
*****************************
Pall Thayer
artist
http://www.this.is/pallit
*****************************

_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to