.tclshrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 11 Jul 2018 18:27:19 +0300
changeset 905 90d1d342a896
parent 635 799341bb0ea7
permissions -rw-r--r--
Make copy of ~/.bash_profile instead symlink as Cygwin installation conflicts with WSL: bash: symlink: No such file or directory

# -*- mode: tcl -*-

if {$tcl_interactive} {
    catch {
        package require tclreadline
        namespace eval tclreadline {
            if ([regexp "^(xterm|eterm-color)" "$::env(TERM)"]) {
                proc prompt1 {} { return "\[0;31m\[1mtcl>\[0m " }
                proc prompt2 {} { return "\[0;31m...> \[0m" }
            } {
                proc prompt1 {} { return "tcl> " }
                proc prompt2 {} { return "...> " }
            }
        }
        ::tclreadline::Loop
    }
}