Changeset 855 for trunk/gui


Ignore:
Timestamp:
Jan 22, 2008, 12:41:53 PM (17 years ago)
Author:
kostmo
Message:

Added single-line command history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/apps/nanovis-test

    r839 r855  
    117117proc send_command {} {
    118118    global widgets
     119    global last_command
    119120
    120121    set cmd [$widgets(command) get]
     122   
     123    # Karl
     124    if {[string length $cmd] > 0} {
     125        set last_command $cmd
     126    } else {
     127        set cmd $last_command
     128    }
     129
     130   
    121131    namespace eval Rappture::NanovisViewer [list $widgets(nanovis) _send_text $cmd]
    122132    $widgets(command) delete 0 end
Note: See TracChangeset for help on using the changeset viewer.