.tclshrc
changeset 634 89a1a77ad559
parent 632 500dcbf3445d
child 635 799341bb0ea7
equal deleted inserted replaced
633:ef2436c18276 634:89a1a77ad559
     1 # -*- mode: tcl -*-
     1 # -*- mode: tcl -*-
     2 
     2 
     3 if {$tcl_interactive} {
     3 if {$tcl_interactive} {
     4     package require tclreadline
     4     catch {
     5     ::tclreadline::Loop
     5         package require tclreadline
       
     6         namespace eval tclreadline {
       
     7             if ([regexp "^(xterm|eterm-color)" "$::env(TERM)"]) {
       
     8                 proc prompt1 {} { return "\[0;31m\[1mtcl>\[0m " }
       
     9             } {
       
    10                 proc prompt1 {} { return "tcl> " }
       
    11             }
       
    12         }
       
    13         ::tclreadline::Loop
       
    14     }
     6 }
    15 }