Skip to main content
Module

x/ddc_vim/deps.ts>fn.screenchar

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.screenchar
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { screenchar } = fn;

The result is a Number, which is the character at position [row, col] on the screen. This works for every possible screen position, also status lines, window separators and the command line. The top left position is row one, column one The character excludes composing characters. For double-byte encodings it may only be the first byte. This is mainly to be used for testing. Returns -1 when row or col is out of range.

Can also be used as a method:

GetRow()->screenchar(col)

Parameters

denops: Denops
row: unknown
col: unknown

Returns

Promise<number>