#3 Fix RUN command being typed while in menu in some models

오픈
pgimeno pgimeno/pg-fix-autorun 에서 pgimeno/master 로 3 commits 를 머지하려 합니다
Pedro Gimeno 코멘트됨, 4 년 전

Some models use the H_READ hook for displaying the menu, and since the old code used this hook to type, the text was incorrectly typed while in the menu.

The H_MAIN hook is executed in many occasions, the first one being right after H_READ, and indicates that the interpreter is ready. This doesn't happen during the menus, therefore a viable strategy is to type the text on the first call to H_MAIN after an H_READ.

Uses typing via the keybuf, to avoid the need for the previous complex handling of multiple commands used for CLOAD followed by RUN, because we encode both lines in one single send.

Also fixes problems when the line was not empty to start with, by clearing it before typing.

Some models use the H_READ hook for displaying the menu, and since the old code used this hook to type, the text was incorrectly typed while in the menu. The H_MAIN hook is executed in many occasions, the first one being right after H_READ, and indicates that the interpreter is ready. This doesn't happen during the menus, therefore a viable strategy is to type the text on the first call to H_MAIN after an H_READ. Uses typing via the keybuf, to avoid the need for the previous complex handling of multiple commands used for CLOAD followed by RUN, because we encode both lines in one single send. Also fixes problems when the line was not empty to start with, by clearing it before typing.
이 풀리퀘스트는 자동적으로 머지될 수 있습니다.
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.