Как отменить эффект «ESC-F» в «менее», не отменяя запущенный процесс?

Вчера у меня была та же проблема, когда я использовал Pulse audio для raspberrypi 0 Вт с DBus в безголовой среде, созданной с помощью yocto без x11 и без systemd, вам нужно запустить и экспортировать dbus перед запуском pulseaudio.

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
     echo "Starting dbus" 
     export $(dbus-launch)
fi

В etc/pulse/client.conf включите разрешение -autospawn -для -root = yes

Запустите pulseaudio -v, чтобы проверить, нет ли другой проблемы в вашей конфигурации. Не используйте переключатель --system, так как это будет неправильно.

pulseaudio -D --disallow-exit
1
08.04.2020, 08:27
1 ответ

Из справочной страницыless:

       F      Scroll  forward, and keep trying to read when the end of file is
              reached.  Normally this command would be used  when  already  at
              the  end of the file.  It is a way to monitor the tail of a file
              which is growing while it is being  viewed.   (The  behavior  is
              similar to the "tail -f" command.)

       ESC-F  Like  F,  but  as soon as a line is found which matches the last
              search pattern, the terminal bell is rung and forward  scrolling
              stops.

Если ваш список стандартных опций для less(, обычно указанный в переменной окружения $LESSили в файле ~/.lesskey, но, возможно, также определяемый псевдонимами оболочки или подобным ), включает -K, это будет невозможно для остановки lessфункций F или Esc -F без выхода изless:

       -K or --quit-on-intr
              Causes less to exit immediately (with status 2) when  an  inter‐
              rupt  character  (usually  ^C) is typed.  Normally, an interrupt
              character causes less to stop whatever it is doing and return to
              its  command  prompt.  Note that use of this option makes it im‐
              possible to return to the command prompt from the "F" command.

Поскольку Esc -F является вариантом функции F , я ожидаю, что опция -Kбудет иметь такой же эффект и на нее.

0
28.04.2021, 23:18

Теги

Похожие вопросы