mirror of
https://github.com/danbulant/node-x11
synced 2026-05-19 04:18:35 +00:00
ListFonts request example
This commit is contained in:
parent
acfa90a264
commit
ff230a1dee
1 changed files with 9 additions and 0 deletions
9
examples/smoketest/listfonts.js
Normal file
9
examples/smoketest/listfonts.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var x11 = require('../../lib/x11');
|
||||
var X = x11.createClient(function(display) {
|
||||
X.ListFonts('*', 1000, function(err, list) {
|
||||
list.forEach(function(ext) {
|
||||
console.log(ext);
|
||||
});
|
||||
X.terminate();
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue