kenv values with ansi escapte sequences - ansi_caption

看板FB_current作者時間14年前 (2011/07/09 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
Hi Folks, It seems the new pre-boot options selection process has some values defined within the kernel environment that contain ansi control sequences. For instance: # kenv LINES="24" ansi_caption[1]="Boot [ENTER]" ansi_caption[2]="Escape to loader prompt" ansi_caption[4]="ACPI Support: Disabled" ansi_caption[5]="Boot Safe Mode: NO" ansi_caption[6]="Boot Single User: NO" ansi_caption[7]="Boot Verbose: NO" bootfile="kernel" Using less, od -c, or other utility, we have: # kenv | less LINES="24" ansi_caption[1]="ESC[1mBESC[37moot ESC[1m[ENTER]ESC[37m" ansi_caption[2]="ESC[1mEscESC[37mape to loader prompt" ansi_caption[4]="ESC[1mAESC[37mCPI Support: ESC[34;1mDisabledESC[37m" ansi_caption[5]="Boot Safe ESC[1mMESC[37mode: ESC[34;1mNOESC[37m" ansi_caption[6]="Boot ESC[1mSESC[37mingle User: ESC[34;1mNOESC[37m" ansi_caption[7]="Boot ESC[1mVESC[37merbose: ESC[34;1mNOESC[37m" bootfile="kernel" This caused a few issues with a script that parses the output of kenv. Simple enough to fix, but thought I'd see what others think. Thoughts? Opinions? Thanks, John _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1E5qNWjc (FB_current)
文章代碼(AID): #1E5qNWjc (FB_current)