/ Please input the password you??????? \
\???? will use later!????????????????? /
————————————–
\?? ^__^
\? (oo)\_______
(__)\?????? )\/\
||—-w |
||???? ||
123
Screen will locked in 7 seconds!

由于靜態(tài)文本沒辦法顯示程序執(zhí)行過程中的動(dòng)態(tài)效果,所以直接看解鎖界面吧

當(dāng)我們輸入不正確的密碼的時(shí)候,系統(tǒng)會(huì)提示輸入錯(cuò)誤,以及一個(gè)幽默的“警告”

___________________________
/?????????????????????????? \
\ Please enter unlock code: /
—————————
\?? ^__^
\? (oo)\_______
(__)\?????? )\/\
||—-w |
||???? ||
Do not check my files,please! See as follows:
_________________________________________
/ Q: Why is it that the more accuracy you \
| demand from an interpolation??????????? |
|???????????????????????????????????????? |
| function, the more expensive it becomes |
| to compute? A: That’s the Law of Spline |
\ Demand.???????????????????????????????? /
—————————————–
\?? ^__^
\? (oo)\_______
(__)\?????? )\/\
||—-w |
||???? ||

當(dāng)我們密碼輸入正確的時(shí)候,如下:

?___________________________
/?????????????????????????? \
\ Please enter unlock code: /
—————————
\?? ^__^
\? (oo)\_______
(__)\?????? )\/\
||—-w |
||???? ||
Hello mark,Today is 06:35:05

結(jié)語

代碼還是很簡單的,僅僅用到了shell腳本語法的幾個(gè)小命令。希望我這個(gè)腳本能拋磚引玉,打開你的思路,做出更好的鎖屏小腳本!

贊(4)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享網(wǎng)絡(luò)內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-62778877-8306;郵箱:fanjiao@west.cn。本站原創(chuàng)內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明出處:西部數(shù)碼知識(shí)庫 » 自制Linux終端鎖屏工具

登錄

找回密碼

注冊(cè)