#!/usr/local/grass-5.0b/etc/bin/contrib/cmd/NVWISH2.2 -f
# This file allows the user to input a line for output
# to a script.  We do this in a separate file so that
# the events processed here are not sent to the script
# file.

destroy .wait_ok

source $src_boot/config.tcl

# Create a simple label and entry widget
set done -1
label .l -text "Add Script Line"
entry .e -width 80 -relief sunken
frame .f
button .f.bok -text "Ok" -command {set done 1}
button .f.bcancel -text "Cancel" -command {set done 0}
pack .f.bok .f.bcancel -side left -fill both -expand yes
pack .l .e .f -fill x
tkwait variable done

if $done {
    puts "[.e get]"
} else {
    puts "-1"
}

exit







