Bad Blue Bull writes: Hi, > I tried emacs --eval '(setq tramp-verbose 6)' /smb:nicolas@win2k:/C$/boot.ini > debug buffer (very big, 12M this time) > https://drive.google.com/file/d/1hSgQ2XUaZLGg8NSbb1sI1zluotn4Z4ye/view?usp=sharing Very strange: --8<---------------cut here---------------start------------->8--- 19:29:40.987633 tramp-smb-maybe-open-connection (6) # smbclient //win2k/C$ -U nicolas -s /dev/null --option client min protocol=NT1 19:29:49.233560 tramp-search-regexp (1) # Quit: "Quit", "" Try "help" to get a list of possible commands. ^[[?2004hsmb: \> --8<---------------cut here---------------end--------------->8--- Very strange. There are ANSI ESCAPE sequences prior the "smb: >" prompt, which are unknown to Tramp. I can reproduce the problem locally. The appended patch fixes this for me, could you pls test? Best regards, Michael.