setterm

setterm -blank 0    ---屏幕一直亮?

setterm -blength 0 ---设置报警音报警时间,0表示没有报警音

setterm -bfreq 10 ---设置报警音的频率(Hz)

 

Usage:
 setterm [options]

Options:
 -term <terminal_name>
 -reset
 -initialize
 -cursor <on|off>
 -repeat <on|off>
 -appcursorkeys <on|off>
 -linewrap <on|off>
 -default
 -foreground <default|black|blue|cyan|green|magenta|red|white|yellow>
 -background <default|black|blue|cyan|green|magenta|red|white|yellow>
 -ulcolor <black|blue|bright|cyan|green|grey|magenta|red|white|yellow>
 -ulcolor <black|blue|bright|cyan|green|grey|magenta|red|white|yellow>
 -hbcolor <black|blue|bright|cyan|green|grey|magenta|red|white|yellow>
 -hbcolor <black|blue|bright|cyan|green|grey|magenta|red|white|yellow>
 -inversescreen <on|off>
 -bold <on|off>
 -half-bright <on|off>
 -blink <on|off>
 -reverse <on|off>
 -underline <on|off>
 -store
 -clear <all|rest>
 -tabs <tab1 tab2 tab3 ...>      (tabn = 1-160)
 -clrtabs <tab1 tab2 tab3 ...>   (tabn = 1-160)
 -regtabs <1-160>
 -blank <0-60|force|poke>
 -dump   <1-NR_CONSOLES>
 -append <1-NR_CONSOLES>
 -file dumpfilename
 -msg <on|off>
 -msglevel <0-8>
 -powersave <on|vsync|hsync|powerdown|off>
 -powerdown <0-60>
 -blength <0-2000>
 -bfreq freqnumber
 -version

 

并非如此,而是我的grade表根本没有namepackage com.buka.po; public class Grade { private Integer gid; private String term; private Integer sid; private Integer math; private Integer chinese; private Integer english; private Student student; @Override public String toString() { return "Grade{" + "gid=" + gid + ", term='" + term + '\'' + ", sid=" + sid + ", math=" + math + ", chinese=" + chinese + ", English=" + english + '}'; } public Grade(Integer gid, String term, Integer sid, Integer math, Integer chinese, Integer english) { this.gid = gid; this.term = term; this.sid = sid; this.math = math; this.chinese = chinese; english = english; } public Integer getGid() { return gid; } public void setGid(Integer gid) { this.gid = gid; } public String getTerm() { return term; } public void setTerm(String term) { this.term = term; } public Integer getSid() { return sid; } public void setSid(Integer sid) { this.sid = sid; } public Integer getMath() { return math; } public void setMath(Integer math) { this.math = math; } public Integer getChinese() { return chinese; } public void setChinese(Integer chinese) { this.chinese = chinese; } public Integer getEnglish() { return english; } public void setEnglish(Integer english) { english = english; } } package com.buka.po; public class Student { private Integer sid; private String name; private Integer xuehao; public Integer getSid() { return sid; } public void setXuehao(Integer xuehao) { this.xuehao = xuehao; } public void setCid(Integer cid) { this.cid = cid; } public void setSid(Integer sid) { this.sid = sid; } private Integer cid; @Override public String toString() { return "Student{" + "sid=" + sid + ", name='" + name + '\'' + ", xuehao=" + xuehao + ", cid=" + cid + '}'; } public Student(Integer sid, String name, Integer xuehao, Integer cid) { this.sid = sid; this.name = name; this.xuehao = xuehao; this.cid = cid; } public int getCid() { return cid; } public void setCid(int cid) { this.cid = cid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getXuehao() { return xuehao; } public void setXuehao(int xuehao) { this.xuehao = xuehao; } }
最新发布
09-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值