screen.lua (9636a14538f56ad9b59c9d77abd9a06d0510d7b9) | screen.lua (604919c47fa4092db08dadd282851afc9cba0a90) |
---|---|
1-- 2-- SPDX-License-Identifier: BSD-2-Clause 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- All rights reserved. 6-- 7-- Redistribution and use in source and binary forms, with or without 8-- modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27-- 28 29local color = require("color") 30local core = require("core") 31 32local screen = {} 33 34-- Module exports | 1-- 2-- SPDX-License-Identifier: BSD-2-Clause 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- All rights reserved. 6-- 7-- Redistribution and use in source and binary forms, with or without 8-- modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27-- 28 29local color = require("color") 30local core = require("core") 31 32local screen = {} 33 34-- Module exports |
35screen.default_x = 0 | 35screen.default_x = 1 |
36screen.default_y = 25 37 38function screen.clear() 39 printc(core.KEYSTR_CSI .. "H" .. core.KEYSTR_CSI .. "J") 40end 41 42function screen.setcursor(x, y) 43 printc(core.KEYSTR_CSI .. y .. ";" .. x .. "H") --- 25 unchanged lines hidden --- | 36screen.default_y = 25 37 38function screen.clear() 39 printc(core.KEYSTR_CSI .. "H" .. core.KEYSTR_CSI .. "J") 40end 41 42function screen.setcursor(x, y) 43 printc(core.KEYSTR_CSI .. y .. ";" .. x .. "H") --- 25 unchanged lines hidden --- |