home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / tclMotif-1.4 / doc / examples / command.tcl < prev    next >
Encoding:
Text File  |  1995-06-29  |  440 b   |  20 lines

  1. #! moat
  2.  
  3. xtAppInitialize
  4.  
  5. xmCommand .top managed \
  6.     -promptString "Enter next command: " \
  7.     -historyItems {info commands,info vars,set env(HOME),set tm_version} \
  8.     -historyItemCount 4 \
  9.     -historyVisibleItemCount 3 \
  10.  
  11. .top commandEnteredCallback {puts stdout [%value]}
  12.  
  13. xmRowColumn .top.buttons managed \
  14.     -orientation horizontal
  15. xmPushButton .top.buttons.Quit managed
  16. .top.buttons.Quit activateCallback {exit 0}
  17.  
  18. . realizeWidget
  19. . mainLoop
  20.