mirror of
https://github.com/He4eT/cheap-glkote.git
synced 2026-05-05 00:47:28 +00:00
Add the possibility to specify the screen size
This commit is contained in:
parent
af71e2f706
commit
d283f27e81
3 changed files with 21 additions and 9 deletions
|
|
@ -3,7 +3,10 @@
|
|||
*/
|
||||
|
||||
class GlkOte {
|
||||
constructor() {
|
||||
constructor({width, height}) {
|
||||
this.width = width
|
||||
this.height = height
|
||||
|
||||
this.current_metrics = null
|
||||
this.disabled = false
|
||||
this.generation = 0
|
||||
|
|
@ -13,8 +16,8 @@ class GlkOte {
|
|||
|
||||
measure_window() {
|
||||
return {
|
||||
width: 80,
|
||||
height: 25,
|
||||
width: this.width,
|
||||
height: this.height,
|
||||
buffercharheight: 1,
|
||||
buffercharwidth: 1,
|
||||
buffermarginx: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue