.tclshrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 05 Sep 2017 17:35:44 +0300
changeset 885 bfbd7fdc89f8
parent 635 799341bb0ea7
permissions -rw-r--r--
https://superuser.com/questions/1247541/make-bash-completion-to-ignore-exe-extention-in-cygwin https://superuser.com/questions/1072481/tab-completion-for-command-arguments-fail-in-cygwin-due-to-exe-suffix https://github.com/scop/bash-completion/issues/164

# -*- 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
    }
}