Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

far2l1Press <ENTER> if tired of watching this message #2341

Open
Zeroes1 opened this issue Aug 12, 2024 · 3 comments
Open

far2l1Press <ENTER> if tired of watching this message #2341

Zeroes1 opened this issue Aug 12, 2024 · 3 comments

Comments

@Zeroes1
Copy link

Zeroes1 commented Aug 12, 2024

Конекчусь к ubuntu server 24.04
пуск, выполнить:
%SystemRoot%\System32\OpenSSH\ssh.exe zeroes@localhost
[c ssh.exe из пакета Git, MS open-ssh v9.5 эффект такой же]

[far последний https://github.com/spvkgn/far2l-portable]
cd far2l
./farl

получаю сообщение:
far2l1Press if tired of watching this message
или ждать 10sec или нажать Enter надо

повторение проблемы 100%.

нашёл упоминание тут:
..\far2l\WinPort\src\Backend\TTY\TTYNegotiateFar2l.cpp

bool TTYNegotiateFar2l(int fdin, int fdout, bool enable)
{
	// far2l supports both BEL and ST APC finalizers, however screen supports only ST,
	// so use it as most compatible
	if (!WriteStr2TC(fdout, enable ? "\x1b_far2l1\x1b\\\x1b[5n" : "\x1b_far2l0\x07\x1b[5n"))
		return false;

	if (enable) {
		if (!WriteStr2TC(fdout, "Press <ENTER> if tired of watching this message"))
			return false;
	}

вопрос из-за чего эффект возникает?
можно ли избежать?

если делаю коннект в рамках Windows Terminal с той же строкой подключения или через putty то эффекта нет. (строка наверное моментально сама исчезает?)

@unxed
Copy link
Contributor

unxed commented Aug 13, 2024

А если с --nodetect запускать?

@Zeroes1
Copy link
Author

Zeroes1 commented Aug 13, 2024

помогает.
а без этого не обойтись? например пользователю портативной версии который без распаковки запускает
./far2l_2.6.3.git20240812-x86_64.run
ключ же не передать вроде?

@akruphi
Copy link
Contributor

akruphi commented Aug 13, 2024

пользователю портативной версии который без распаковки запускает ./far2l_2.6.3.git20240812-x86_64.run ключ же не передать вроде?

В портативную версию сначала передаётся -- (как признак окончания ключей распаковщика), а затем уже ключи для far2l, вот подробности: https://github.com/akruphi/far2l/wiki#portables_nuance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants