Friday, April 29, 2011

gnocl::vte

In a recent post to the gnocl groupmail DMcC mentioned that he'd like to develop an app using the gnocl::vte package. This has been in need of some TLC for some while and, as I was watching the Royal Wedding online today (congratulations to Wills and Kate!!!) I decided to revisit the code. As I expected, much was to be done! I've added quite a lot of code to the module and have put the stubs in place for handling properties and signal handling. I've also reworked the base widget creation and begun to add some commands. Another 4hrs work and it should be complete!  Here's my test script:

#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"

package require Gnocl
package require GnoclVTE

set vte [gnocl::vte ]

$vte configure \
    -allowBold 1

gnocl::window \
    -setSize 0.5 \
    -child $vte \
    -onDelete exit

$vte feed "mc\n"

#----------------------
set but1 [gnocl::button \
    -text Reset \
    -onClicked {
        $vte reset
        }]


gnocl::window -child $but1

gnocl::mainLoop

No comments: