tclreadline and opensees compatibility issue

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
dbpatankar
Posts: 4
Joined: Mon Jan 25, 2010 8:08 pm
Location: Indian Institute of Technology, Roorkee

tclreadline and opensees compatibility issue

Post by dbpatankar »

I have used tclreadline with opensees earlier for autocompletion of commands (shell commands). This helps a lot. However, in recent version of opensees there is issue with compatibility. Here follows the detailed description to reproduce the issue.

1) install opensees as usual. In my case its on Ubuntu 20.04 (Also tested on archlinux).
2) OpenSees works fine at this stage but has no autocomplete feature as it has to be added in tclsh.
3) Install tcl-tclreadline from Ubuntu repository.
4) copy following code into ~/.tclshrc to import the tclreadline package

Code: Select all

      
      if {$tcl_interactive} {
      package require tclreadline 
      ::tclreadline::Loop
      }
5) Now execute the command OpenSees to start opensees
6) Produces following error
invalid command name "load"
So clearly once the tclreadline package loads opensees gives this error. Without this package it works fine. Would be great if this issue is resolved. Autocomplete makes coding and debugging a lot easier.
Senior Research Fellow,
Department of Earthquake Engineering,
Indian Institute of Technology, Roorkee
Roorkee,
Uttarakhand (India)
Post Reply