0
我想在C++上開發一個使用putty控制樹莓派的windows命令行程序。我已經使用膩子應用程序,它工作100%很好。然而,我試圖使用plink可執行文件,所以我可以用我的C++程序來控制程序,但是當我嘗試連接到Pi時,會得到一串隨機字符。 控制檯輸出如下plink on raspberry pi
C:\Users\user>plink [email protected]
Using username "pi".
[email protected]'s password:
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May 21 15:59:02 2013 from xxx.xxx.xxx.xxx
←]0;[email protected]: ~←[01;[email protected]←[00m ←[01;34m~ $←[00m
←]0;[email protected]: ~←[01;[email protected]←[00m ←[01;34m~ $←[00m
←]0;[email protected]: ~←[01;[email protected]←[00m ←[01;34m~ $←[00m
(當i按輸入的最後一行再次出現)。
請幫忙嗎?
嗨,謝謝你的回覆。我在connection-> data中添加了啞元到終端類型字符串中。它在你按下回車鍵時出現的覆盆子pi字符串。但是,當我輸入諸如ls之類的基本命令時,控制字符仍然存在。乾杯 – joelyboy94