Category "tcl"

How to capture prompt from terminal using Tcl or how can I match prompt with color code?

I want to capture prompt of a remote device. -regexp {[\$\#]\s*$} { # capture the prompt } "[\$#]\s*$" does not work for prompt with color codes.

Ns2 Modify the source code and compile in ns2

I have been trying to modify the TCP source file parameters and I wanted to execute the modified source file in ns2. Can someone give the steps involved to modi

Why are multiple instances of Tk discouraged?

Consider below example: import tkinter as tk root = tk.Tk() root.title("root") other_window = tk.Tk() other_window.title("other_window") root.mainloop() a